//新闻
myModule.controller('home',['$scope', '$http', '$location', '$rootScope','$compile' ,'$stateParams' , function($scope, $http, $location, $rootScope,$compile ,$stateParams) {
	$scope.con1="我测试自定义过滤器";
	$scope.con2="我测试自定义过滤器";
	$scope.con3="我测试自定义过滤器";
	var ele=angular.element('<div id="aaa">几千的</div>');
	
	//end
}]);
//新闻
myModule.controller('news',['$scope', '$http', '$location', '$rootScope','$compile' ,'$stateParams' , function($scope, $http, $location, $rootScope,$compile ,$stateParams) {
	$scope.list=[
		{id:"01",content:"我是新闻第1条"},
		{id:"02",content:"我是新闻第2条"},
		{id:"03",content:"我是新闻第3条"},
		{id:"04",content:"我是新闻第4条"},
		{id:"05",content:"我是新闻第5条"},
		{id:"06",content:"我是新闻第6条"},
		{id:"07",content:"我是新闻第7条"},
		{id:"08",content:"我是新闻第8条"}
	];
	//end
}]);
myModule.controller('newsc',['$scope', '$http', '$location', '$rootScope','$compile' ,'$stateParams' , function($scope, $http, $location, $rootScope,$compile ,$stateParams) {
	$scope.id=$stateParams.id;
	//end
}]);
//消息
myModule.controller('friend',['$scope', '$http', '$location', '$rootScope','$compile' ,'$stateParams' , function($scope, $http, $location, $rootScope,$compile ,$stateParams) {
	$scope.list=[
		{id:"01",name:"张一一",sex:"男",content:"第1条"},
		{id:"02",name:"李丽丽",sex:"女",content:"第2条"},
		{id:"03",name:"王大纲",sex:"男",content:"第3条"},
		{id:"04",name:"李孝利",sex:"男",content:"第4条"}
	];
	//end
}]);

myModule.controller('friendc',['$scope', '$http', '$location', '$rootScope','$compile' ,'$stateParams' , function($scope, $http, $location, $rootScope,$compile ,$stateParams) {
	$scope.name=$location.search().name;
	$scope.sex=$location.search().sex;
	//end
}]);
//ajax获取
myModule.controller('ajaxget',['$scope', '$http','getNewsService', function($scope, $http, getNewsService) {
	getNewsService($scope);
	//end
}]);
//